<?php 
define('SITE_ROOT','http://localhost:90/ihelp');
require_once (ROOT . DS . 'library' . DS . 'phptal' . DS . 'PHPTAL.php');

$template = new PHPTAL(VIEW_TEMPLATE_FOLDER . DS . 'StockActions' . DS . 'shoppingList.html');

$template->cssRootFolderUrl = SITE_ROOT . DS . "css" . DS;
$template->imgRootFolderUrl = SITE_ROOT . DS . "img" . DS;

$template->action = $action;

// execute the template
try {
	echo $template->execute();
}
catch (Exception $e){
	echo $e;
}
?>